remove dead code
document is immutable