added handling for closed bullet points