made sendinput inline