added pai script