removed debug code in ball