add function to process basketball data