checkTuple now at top of program since it will be used multiple times