added inline templates