revised masking using static margin-tops