complete import function