solution 6,cleanup