moving filters to an attribute and adding setters and getters