switched to nanoTime(), fix typos