I tryied but return the same error * $input cannot use in an event