modified template back to previous way of creating nmestage