moved default paremeter logic into utility