remove meaningless codes.