finally fully working with stats and one run