why the "if" on the interpolation mode is not put inside the macro? It would help to retain just one switch below instead of the two