remove printfs for performance