introduce _g as multiple output map