change render function