added hmm. made access faster. to fix count