implemented pre-compiled template