added macros and iterations with multiple targets