Is that a typo: `disp_weight` - the function definition seems to be `dispweight`?