bug fix: added explicity copy of centers to avoid side effects