fix for methods with generic parameters