ec1 working except for a bug with longitude