only add state if state is on the object