make template call more modular