added better precision for the output coordinates