added new variable to condense code.