dynamic updates of centeroids