return one type or all types