add ball elminate function