get entity label function