working macro generator