beginnig to implement the rendering related methods