added shared variable