corrected some spacing inconsistencies in code