make sure values to be injected are scalar