added muteFlashSound function