extracting names from the code