integrated save delay code with computation