changed variables in paragraph to the array values