append data only err == nil