added adaptive prompt