making whereStatementForModel public