added back the old kaggle code as a new function