reset function added