now trigger on input instead