modify input rule