correct location check on Contains