first version of DGPS code done