equity data handled and generalizations done to code