fixed stats and tested