renamed empty to freeSpace
renamed empty to freeSpace