wrote the spaces of files