added print name

prints name in parameter