add class for object optimization