distance now uses double not int.