correct cov_input and added bounds before putting log in prob_tr