mark some globals static