updated due to code changes, added counter on util