adjusted filter Logic