if-condition minor change