added spent script