chanched names for function, fix problem with distance between circles in old history