updated second script