conversion to xyz working