fixing reset stuff