i didn't do anything in this part except to fix the braces, to make it more readable for me