cut down on code redundancy.