added statemanager
added statemanager
working on statistics