   Serial.println("Getting " + url);
 
   client.get(url);
-
-  // if there are incoming bytes available
-  // from the server, read them and print them:
   
   // Get the JSON data
   int j = 0;
-  while (client.available()) 
-  {
+  while (client.available()) {
     char c = client.read();
     jsonStr[j++] = c;
-    Serial.print(c);
-    
   }
   jsonStr[j++] += '\0';
   
   int i = 0;
-  while(jsonStr[i])
-  {
+  while (jsonStr[i]) {
     Serial.print(jsonStr[i++]);
   }
   Serial.print("\0");

  if (!root.success()) 
  {
    Serial.println("parseObject() failed");
    return false;
  }

  daySteps = root["daySteps"];
  nightSteps = root["nightSteps"];
  stepsToInit = root["stepsToInit"];
  
  daySteps = daySteps;
  nightSteps = nightSteps;
  
  // Success
  return true;
}

//delay between steps
boolean waitTime(unsigned long time)
{
  
  //Serial.println("time day one is being called:");
  //Serial.println(start_time);
  //Serial.println("Starttime + delay_day_1 is:");
  //Serial.println(start_time + daySteps);
  while ((start_time + time) > millis())
  {
    delay(5);
  }
  

  uint32_t nightSteps = 0;
  uint32_t stepsToInit = 0;
  
  do {
    Serial.println("Calling getSunRiseSet()");
    getSunRiseSet(lat, lon, daySteps, nightSteps, stepsToInit);
  } while (daySteps == 0 && nightSteps == 0);
    
 
  Serial.print("\ndaySteps ");
  Serial.println(daySteps);
  Serial.print("nightSteps ");
  Serial.println(nightSteps);
  Serial.print("stepsToInit ");
  Serial.println(stepsToInit); 
  
  Serial.println("Loop Setup complete");
  delay(2000);
  
  steps_current_time = stepsToInit;
    //make needle turn fast to the right time 
  while (i < stepsToInit) {
    step1(delaylegnth_speed);
    step2(delaylegnth_speed);
    step3(delaylegnth_speed);
