Fixes some of the sync problem
Hw 4 changes made up to body