standard render function. should work inside David's main()