add some error handling for the bubble chart