added easy render() function