set up REPOSITORY macro