add definition filters logic