modify script for version