made the output of the compute functions make more sense, passes basic check against naive