improve :input selector