changed println to logger.info()