add mask

add a mask for the paste function