remove debug prinf ifs