adds render method