cleaned up input filter placement