calibration for the ECS's and some extra improvements on the code