fixed reference error because driver was undefined