reset function for all input