modified homeworks before filter