added render2D method