add rendering function mockup