add previous classes