readts_EE function updated