changing old coord to Ea/xa and va/ya