adding correction to generate position file