remove extra whitespace
print objects properly