fixed load txt to data structure