implementing coordinate parsing