cleaned up coord format conversions.