adding write in there