creates sets of contributions by type