fixed bug with statistics module, removed unused imports