parsing function is now looped to access all three q_value files