Trying to fix logic to get elet