removed unnecessary printfs