replaced functions of input