added better reset