add prepare method for renderers