fix add above docs, added comments