gutted it and started implementeing the analytic soln