please remove System.out und implement proper logging