minor refactor: an additional utility method,