spaces based on filetype