MBH: broken code for sam to debug