added catch ball function