remove redundant reverses