added voltage check