fixed where clauses