test by removing reset functiion