small style refactor. cell termplates per type