changed passiveCavity from a function to a script