removed printfs from main