spatial functions