added splitted recount_accounting function