macro inputs reordering