modified Specs and added necessary functionality to filter