add new code for xyz

Added new code