remove  some  dead  code