changing structure of lifecycle