made the input work more reliably