delete redundant statements