made some changes and am still working on an error