added time duration stuff