[refactor] utils