bug fixed
printing got better