added the render function and mate its running possible