hiding globals in sidebar code