seperated into utils file
added analysis script