removed debugging line
added stats feature