first commit of macros to run on whole samples