changed the writing in the posix file