added functionality to search by director