add class lock