extracted functions to compose first line of prompt