skeleton of render function added