added Print function