update eval looping to check for out of bounds errors