minor correction data preparation