caught a bug in cs445