change System.out.println to log.error