fixed flow of the program

update of RESULTS done in the "right" spot