added constraints to filter (no tests yet)