changed spike ground detection