simplified boolean toggling using macro