do an elif instead of double if

provide better info message