removed resorting redundancy