added template for location