update and filter implemented
business logic for filter and update