modify note and judge resources.
hmm...