implemented for getting inputs