minor changes to import functin