adds collector class