adding bmg2xyz