adding functions for clear ball