added a case when no prompt is needed