add rendering method