preprocessing and exploration