add doc for function
update to dict function to adapt need