spacial 2d assignment