backup. transforming import into a function.