function renaming - write doesn't need to be exported