added error checking of reset address