modifications to improve redundancy checking