added input filter