pulled type out of method