testing optimization macro