remove loop from template