update pastebin function