added parse method for content extraction