var-names changed and performance of distance-methode (pytagoras) increased