bug fix with parameter not obscuring typedef