file analyser moved into separate function