changed output to logger