add inbounds macro to speed up logistic regression