works with multiple balls