conditional for making noise