woring on timings and optimizings