added function to write common text up to coords retrieved