get_text function complete