add else statement to uri