-found syntax error within the reset function