added code from drive talk