wrote series import code