added stan magic