space encoding