got stats and graph working