broken computeDiff code added below a return statement, not executed