minor changes -- add res not working perfectly

didn't have time to figure out why before class
will work on that after