added function for computing E