implemented filtering by user