explain how this script works