remove redunance