change System.out to log.debug