added some external defined vars