just some aesthetic improvements on file writings