some useful code for kaggle competitions :)