b problem modified