working on error and timings