added printing distance