trying to fix script issue