printing needed information working