added queryChecker