removed some dead code from the writer side.