remove redundant block