add class func to action