worked out some of the bugs with the new code we worked on in class