started to write set_spatial()-function