replace defined with defined or