ask function added