added render functionality