converted to paste event