first draft Bryan code