refactored entity summary as ref