some unneccessary temp variables deleted
uniform edge length function used build in Ones method