resistance equation fix.