never call pos.setLength(0)