The invention discloses a pharmaceutical composition of nanoparticles, wherein each nanoparticle comprises N-palmitoyl chitosan that is conjugated with at least two different moieties, the moieties including a donor moiety and an acceptor moiety having a distance of 10 nm or less enabling Förster resonance energy transfer.