- refactoring of creating spatial model