update the script using constants