make this work for microseconds too