inherit before altering the prototype