ask history logic