added legend to search file