foreign functions deleted