added general indirect sensing scheme