changed import function