How to update the purpose code