add class fn