Proper usage of the patter checking