changed paramater assignment to avoid float(None)