adding initial xd code