MNT : removed debugging, converted print to logging