edit to fix title extraction