refactoring into smaller methods, cleaning up spacing and names.  removing inputs whenever possible