bad code for spencer to look at