added met, epsilon calculation