fix superclass extend method