convert all remaining printfs to cout/endl;