added the row coord function to export