fixing definition ordering