adding write commands