     }
   end
 
-  def edit({:edit, event}, model, new_events ) when model == %{} do
+  def edit({:edit, _event}, model, new_events ) when model == %{} do
     {model, new_events}
   end
   def edit({:edit, event}, model, new_events) do


  def actual_units_user(user, _event, user_model, _benchmark), do: {user, user_model}

  def actual_units({:actual_units, event}, model, new_events ) when model == %{} do
    {model, new_events}
  end
  def actual_units({:actual_units, event}, model, new_events ) do

  end

  def actual_units_user(user, %{:data => %{"units" => units}} = event, %{"status" => "stopped"} = user_model, benchmark) do
    units = normalize_units(units)
    users = length(event.data["users"])
    actual_units = units / users
    uph = actual_units / (user_model["active_seconds"] / 3600)
