improved empty template