self argument fix in pretty_print