worked except RESET function