implement toXYString