creating variables for cross section