further data preparation