loop heading output