simplify primitive collections