one step before template filling