simplify "where" and "having" methods