append function in base64