fixed some printing stuff