small refactor to eliminate duplicated calls