renaming write functions