refactoring function imports