add and update prompt func