adding uri function