coords conversion (first draft)