doc: updated code