added append or write