This assignment occurs a second time a few lines down. Is there a way to combine?