made script work