script1 for prec generation