changed picture, adjusted the behavior when no string for the distance is given