added parens to the side-effect functions, as is the scala convention