working on import function