remove the 0.5 factor in front of the functional. It was a mistake