freeze every object in the state