add 'return' to render function