function mark as template added