remove nonused codes