remove debug printfs and commented code