debug printfs removed