fix classmethod definition