moved uri attribute out to a variable