statistics script updated