sync for taking out system.out.printlns