preventInteractions class and functions