testing sound
added in more safety checks