added method filter func to handlers