code choosen to be run and to be recorded