add render to functions