moved code to new pretti proc.