renaming variables to be more related to their purpose, fixing bug causing the same output to be used for multiple providers