         for(specialist) in specialists {
 
             var playerName = ""
+            var injuryName = ""
             
             print(specialist.name)
             let treatments = try specialist.treatments()

                
                let injuryId = treatment.injury_id!
                let injury = try Injury.find(injuryId)
                print("player from injury \((injury?.player_id)!)")
                
                let player = try Player.find((injury?.player_id)!)
//                print("Player name: \(player?.name)")
                playerName = (player?.name)!
                
                // compare dates
                let today = Date().getCurrentDate()

                
                let object = try Node(node: [
                    "player": playerName,
//                    "treatment": treatment,
                    "specialist": specialist?.name,
                    "injury": injuryName,
                    "appointment_time": app_time
                    
                    ])
                
                response += object
