moved dict reset lines into def init to allow them to run on each
object.