got ball working with variables