added append buffer