made printing slightly cleaner
first attempt to remove infinitely increasing stack