trying to get writing to work