compliance with electrical codes