extracted some variables