improve performance on prompt