delete redundant parts