update document. fix get's return value