import process function incorrect