added adaptive demo