fixing bug with compute time