updated for template

one bug