changed calc distances