second script is only based on customer number, not time