declare theta in rs_estimate.cc