added the reference element and reduced redundant xml