correct version, checkpoint when the internship is done. switch between parallel and serial using the macro PARALLEL_ON