fix expanding def