pass doubles instead of floats for durations