EW more calculations var and arrays

EW more calculations