add text parse method