add run_add.r and modifty q12.r to be paramaterized