Update xyz.cpp

xyz updated