this needed to avoid problem with some template classes