ball detector added.