reduce space functionality is done with file reading