started changing the resetFunction