add filter for input