implemented hash for updating changed entities