guarding against errors when evaluating