remove redundant expression