handle class methods