added missing event argument to subscribe callback