add code to aggragate times, but it is currenlty not working corrrectly (so disabled)