small changes to stackoverflow script