preparing links