working with sm classes