added combining similar items into groups