add doc and change rendering