changed applyDynamic method to expect an explicit personId