add mask to edges