some modifications to doubleEle