added more sensible output with statistics