removed unnecessary condition check.