remove unnecessary comparison