removing the redundant dependencies