fixed print statements so non-int keys won't raise errors