simplifying
simplifying
getting nested wheres working