completes statistics task