clustering updated and unnecessary objects removed