added resetcode