fixed the 'ask' function