general framework of train method set up