created get.headline function