remove old debug function and add two macro: LIKELY UNLIKELY
little change
delete unused var