processing user history script update