switched to write with correct names