before template making