catching mutation errors