changed write to grow
added writing