added a trainDraw call to perform actions in sequence