added sweetjs macro