removed old dependency
readded scaling of the direction with distance of points