added attempt at spatial structure