modified inputFilter