also the mask_cap_ses needs few border points to be set to zero in
order to achieve numerical stability