removed unnecessary if-condition