import function almost done.