fixing up some errors