remove redundant constants