moved silent_mode to a local variable