same could have one method that takes a type.