avoid compiler warnings by template specialisation