got rid of printfs