added some printfs