modified to support title field