add shared variable, adjust partial