generalize for all collections
Merge pull request #73 from Trott/specs

generalize for all collections