made balls work correctly