add filter for user's input