wrote parallel file IO