improving daily routine code