Templates code should be in extended not simple