template & params working