remove unused macros
output to stdout