added contributions and purpose codes