working on the blei equation