improvements for rosstat-function