started work on distances module