template functionality was added