add origin ball function