put saving of input back in