writing data works now