restore compute code, which was removed while I was debugging