add new code for xyz