removed unnecessary comparison