getting ready for calculating eig