fixed the data simplification issue