eliminate unused codes