fix noise ternary operator, to fix noise example