varint for entity