removed unneeded file reference as it would always be null due to using a file stream