old code import