base templete