another way to fix template dependency