add var check for agencies