adding spatial template