share this function across scripts