added ball resizing.