reset method now is only callled resetState