change actions.life to actions.new_life; add life parameter to actions