remove breakpoints, and use log instead of print when possible