alternative approach with untested branch