write seems to be correct