phastphase data preparation snippet