remove redundant dependencies