perfected the function finding full names