cleaning the structure