removing unused parameter causing warnings.