new cap_ses g function.. this is completely localized in the boundary
region