reduce globals