removed globals