fixed incompatible function header