removes unneded param from internal function