remove unnecessary shared variable