prep for analysis