cleaned up reset method a bit more.