working on making cost work with energy diffs