fixes reversed order in macro