add uvindu's modification \n coordinates optimizer