cleaned in some errors