freeCells in export, refactoring