updating classes for order array