raise error when items are not good