remove redundant bars