starting to write GPS file