minor changes in balls.py