update spaces.