got rid of reset function