adding ask function