Cleaning the end spaces