added missing spaces before functions