correcting code & links