added matt stary's finished script