add doc
correct and remove try/catch