added analysis portion