write import code