make sure to raise an exception when no record can be found