updating lifecycle