remove reset function; use the 'prepared' member variable instead