changing logger to puts