change space type