Finished the defix() method