split apart a large method. Utilize existing functions instead of duplicating. Return values.