added update life function

yilser needs to be a git