add useful function when pasting over a selection