update script to varial version2