move worktype as the last template param