remove unuse macros and function