error checking in iris