remove unwated codes