make $id global