finally got electron repositioning right!