histogram macros moved to header file