added function to remove unrecognized prompts

ERRONIOUS :(