added some inline doc