improved collections utility class