fixed powerline detection