removing redundancy