cleaning up filterinput