remove redundant dependences and checks