changed sign of clock and converted ns to s