remove old dead codes