print table function added