moved pi_string to global