add base function in render class