getting correct cooridnates