delete unused spaces