the complete guide to check patterns