are ungrounded outlets up to code?
According to the National Electric Code, two-prong outlets are allowed in homes as long as they are properly working. If you choose to replace your two prong outlet, you do not have to upgrade to a newer model.