handle the 'empty prompt' case