updated dwriter