sync for taking out printlns