added dict to class or nil