add loc functions