added 'data' variable to entity.