replaced system.out.println with logger.info