add fix for calling function when not passed