nit: declare `title` locally