parameterized bug fix