add timer
make swap_distance func. copy-paste from Trolik :)