add output GPS csv file function