more changes to myreset()