Make first sum of distance