threshold is now scalable via r and t respectively