fixed import_pieces