function personal update code fix