change dependency filtering logic