updated PBS script