better printing and example