add some helpful comments in compute