trying to stop it from crashing