fixed template store to use [] instead of push