some printfs removed