attempt to fix freezes
cleaning