ijmacro functions updated