remove unused custom inherits function