extract space